package ex0.expressions.operations;

/**
 * Created with IntelliJ IDEA.
 * User: Roi
 * Date: 10/18/13
 */
public class SubtractOperation extends BinaryOperation {

    public SubtractOperation(Double firstVal, Double secondVal, String firstStr, String secondStr) {
        super(firstVal, secondVal, firstStr, secondStr);
    }

    @Override
    protected String getOperationType() {
        return "-";
    }

    @Override
    protected Double apply(Double first, Double second) {
        return first - second;
    }
}
